<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="page-index-block">
	<c:if test="${page>1}">
		<a
			href="<c:url value="${servletPath}">
											<c:if test="${!empty param['q']}"><c:param
											name="q" value="${param['q']}" /></c:if><c:param
				name="page" value="${page-1}" /> </c:url>"><c:out
				escapeXml="false" value="&lt;&lt;Previous " /></a>
	</c:if>
	<c:forEach begin="1" end="${pageCount}" var="pageIndex">
		<a
			class="page-index ${listType} <c:if test="${page==pageIndex}">current-page</c:if>"
			href="<c:url value="${servletPath}">
											<c:if test="${!empty param['q']}"><c:param
											name="q" value="${param['q']}" /></c:if><c:param
				name="page" value="${pageIndex}" /> </c:url>">
			<c:out value="${pageIndex}" />
		</a>

	</c:forEach>
	<c:if test="${page<pageCount}">
		<a
			href="<c:url value="${servletPath}">
											<c:if test="${!empty param['q']}"><c:param
											name="q" value="${param['q']}" /></c:if><c:param
				name="page" value="${page+1}" /> </c:url>"><c:out
				escapeXml="false" value=" Next&gt;&gt;" /></a>
	</c:if>
</div>